<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<base href="<%=basePath%>">
        <script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title> 用户注册页面 </title>
	<script type="text/javascript">	  
	 
	  function back(){
		      location.href='Login/toLogin';
           }
	
	</script>
	 <style type="text/css">
	           table {
	            
	            background-image: url(<%=basePath%>/img/blue.jpg);    
				
				/* background:inactiveborder;  */
				position:absolute; /*绝对定位*/ 
				top:28%; /*距顶部35%*/ 
				left:49%; 
				margin:-100px 0 0 -150px; /*设定这个div的margin-top的负值为自身的高度的一半,margin-left的值也是自身的宽度的一半的负值.*/ 
				width:300px; /*宽为360,那么margin-top为-180px*/ 
				height:460px; /*高为220那么margin-left为-110px;*/ 
				z-index:99; /*浮动在最上层 */ 
				} 
	      	
	           .body{    
			      background-image: url(<%=basePath%>/img/blueworld.jpg);    			        
			    }
				            
	    </style>
</head>
<body class="body">
<center>
<h5>${error}</h5>
<form name="registerForm" action="Login/add" method="post">
                    
    <table id="register">
            
      <tr>
           <td>
             <h2 align="center">注册新用户<br></h2> 
            <hr>
           </td>
      </tr>       
        <tr align="center">
          <td align="center">
      <%-- I D： <input type="text" name="id" id="id" value="${id }"/><br><br>  --%>          
                   账号：<input type="text" name="username" id="username" value="${username }"/><br><br>
                   密码：<input type="password" name="password" id="password" value="${password }"/><br><br>                                                   
                   性别：<input type="text" name="sex" id="sex" value="${sex }"/><br><br>            
                   邮箱：<input type="text" name="email" id="email" value="${email }"/><br><br>
                   地址：<input type="text" name="address" id="address" value="${address }"/><br><br>
                   类型：<select name="usertype" id="usertype"> 
				          <option value=""></option>
				          <option value="manager">manager</option>
					      <option value="user">user</option>
					 </select><br><br> 
            <input type="submit" value="注册" />&nbsp;
            <input type="reset" value="重置"/>&nbsp;
            <input type="button" value="返回登陆" onclick="back()"/><br><br>           
          </td>
        </tr>
        
    </table>
</form>


</center>
</body>
</html>